#include<stdio.h>
int main()
{
	double benjin;
	scanf("%lf",&benjin);
	double r1,r2,r3,r4,r5;
	r1=benjin*5*0.03+benjin;
	r2=benjin*2*0.021+benjin;
	r2=r2*0.0275*3+r2;
	r3=benjin*3*0.0275+benjin;
	r3=r3+r3*0.021*2;
	r4=benjin;
	for(int i=1;i<=5;i++)
	{
		r4=r4*(1+0.015);
	}
	r5=benjin;
	for(int i=1;i<=20;i++)
	{
		r5=r5*(1+0.0035/4);
	}
	printf("%f %f %f %f %f",r1,r2,r3,r4,r5);
	return 0;
}
